<script setup>
// 简单两个小组件，论坛和学业辅导

import store from "../store";
</script>


<script>
export default {
  data() {
    return {
      IStouch: "endtouch"
    };
  },
  methods: {
    starttouch() {
      this.IStouch = "starttouch";
      console.log('start')
    },
    endtouch() {
      this.IStouch = "endtouch";
    }
  }
};
</script>
<template>
  <div class="main">
    <div class="wenzi1">交流论坛</div>
    <div class="wenzi2">学业辅导</div>
    <div class="luntan" :class="IStouch" @touchstart="starttouch" @touchend="endtouch">
      <a href="../Forum/Forum.html">
        <img src="../assets/luntan.png" alt />
      </a>
    </div>
    <div class="xyfd" :class="IStouch" @touchstart="starttouch" @touchend="endtouch">
      <a href="../ListVolunteer/ListVolunteer.html">
        <img src="../assets/xueyefudao.png" alt />
      </a>
    </div>
  </div>
</template>


<style scoped>
a {
  text-decoration: none;
}
.main {
  width: 100%;
  height: 100%;
  background-image: url("../assets/bgc01.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.wenzi1,
.wenzi2 {
  position: absolute;
  top: 30px;
  background-color: red;
  width: 80px;
  color: #f2f2f2;
  text-indent: 8px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.wenzi2 {
  top: 337px;
}

.luntan,
.xyfd {
  position: absolute;
  width: 300px;
  height: 170px;
  left: calc(50% - 150px);
  top: 93px;
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
}
.starttouch {
  box-shadow: 0 0 10px rgb(62, 62, 57);
}

.xyfd {
  top: 413px;
}
</style>